package com.tengroup.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.tengroup.dao.SubjectTypeDao;
import com.tengroup.entity.SubjectTypeEntity;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import org.springframework.stereotype.Service;
@Service("subjecttypeservice")
public class SubjectTypeServicempl extends ServiceImpl<SubjectTypeDao,SubjectTypeEntity>implements SubjectTypeService{
    @Override
    public int insert(SubjectTypeEntity subjectTypeEntity) {
        return baseMapper.insert(subjectTypeEntity);
    }

    @Override
    public int update(SubjectTypeEntity subjectTypeEntity) {
        return baseMapper.updateById(subjectTypeEntity);
    }

    @Override
    public int delete(int id) {
        return baseMapper.deleteById(id);
    }
}
